<?php

require_once(dirname(__FILE__) . '/appconf.php');

class ImoreHilite extends Site {

    function setup() {
        $this->run_modes('list');
        $this->start_mode('list');
        $this->selfurl = '/imoreHilite.php';
        $this->pagesize = 3;
        parent::setup();
        include("common.php");
    }

    function cgiapp_prerun($rm = '') {
        $this->ImoreHilite = getModel('Model_ImoreHilite');

        parent::cgiapp_prerun();
    }
    
    function action_list(){
        $data = $this->ImoreHilite->getList();
              
        echo json_encode($data);
    }

}

header("Content-type: text/html; charset=utf-8");
$webapp = new ImoreHilite();
$webapp->run();
?>